package start;

public class K {
    private String name;
    private G g;
    public K() {
        System.out.println("K. Constructor K()...");
    }
    public K(String name, G g) {
        System.out.println("K. Constructor K("+name+","+g+")...");
    }

    public void setName(String name) {
        System.out.println("K. setName("+name+")...");
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setG(G g) {
        System.out.println("K. setG("+g+")...");
        this.g = g;
    }

    public G getG() {
        return g;
    }
}
